﻿using Mes.Domain.BoundedContext;

namespace Mes.Application.DTO.Inputs.MasterData
{
    /// <summary>
    /// 新增物料类入参
    /// </summary>
    public class AddMaterialClassInput
    {
        /// <summary>
        /// 物料类编码
        /// </summary>
        public string Code { get; set; } = string.Empty;

        /// <summary>
        /// 物料类名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 物料类类型
        /// </summary>
        public int TypeId { get; set; }

        /// <summary>
        /// 物料类类型名称
        /// </summary>
        public string TypeName { get; set; } = string.Empty;
    }

    /// <summary>
    /// 编辑物料类入参
    /// </summary>
    public class UpdateMaterialClassInput
    {
        /// <summary>
        /// id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 物料类类型
        /// </summary>
        public int TypeId { get; set; }

        /// <summary>
        /// 物料类类型名称
        /// </summary>
        public string TypeName { get; set; } = string.Empty;
    }

    /// <summary>
    /// 查询物料类入参
    /// </summary>
    public class GetMaterialClassesInput
    {
        /// <summary>
        /// 查询关键字
        /// </summary>
        public string? KeyWord { get; set; }

        /// <summary>
        /// 分页参数
        /// </summary>
        public PagedInput PagedInput { get; set; } = new PagedInput();
    }
}
